f = open('data.txt')

nums = []
for line in f.readlines():
    line = line.rstrip()
    if not (line.startswith('#') or len(line) == 0):
        nums.append(int(line))

print nums
print sum(nums)
        
        
